-
Notifications
You must be signed in to change notification settings - Fork 39
Кузьмин Иван M3337 #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
style.css
Outdated
| cursor: pointer; | ||
| } | ||
|
|
||
| .letter-body_opened__close:hover { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
После модификатора не может быть другого модификатора или элемента
mailController.js
Outdated
| } | ||
|
|
||
| function getReadLetter(currentReadableLetter) { | ||
| currentReadableLetter.classList.remove('is-read_not-read'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
letter_read
mailController.js
Outdated
|
|
||
| function uncheckAllChecker(currentCheckBox) { | ||
| if (!currentCheckBox.checked) { | ||
| document.getElementById('check-all-letters').checked = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно использовать просто querySelector или querySelectorAll всегда
mailController.js
Outdated
| if (letterSection[i] !== wrapperCurLetter) { | ||
| letterSection[i].classList.add('letter-body_non-displayed'); | ||
| } else { | ||
| letterSection[i].querySelector('.letter-body_opened').classList.remove('letter-body_non-displayed'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Старайся селекторы выносить за пределы циклов и кэшировать их в переменных
| -moz-user-select: text; | ||
| -ms-user-select: text; | ||
| -o-user-select: text; | ||
| -webkit-user-select: text; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
user-select: value
No description provided.